package com.sgcc.sx.pmos.common.bean;

import android.text.TextUtils;

import com.sgcc.sx.pmos.common.utils.BigDecimalUtils;

import java.util.List;

public class PackageComparisonPriceDetailBean extends BaseResponse {


    private List<List<Bean>> data;


    public List<List<Bean>> getData() {
        return data;
    }


    public static class Bean {


        private String guid;
        private String combId;
        private String membersSdId;
        private String packageId;
        private String schemeId;
        private String energyType;
        private String difId;
        private String oriDifId;
        private String detailId;
        private String oriDetailId;
        private String configId;
        private String configValue;
        private String configName;
        private String plRange;
        private String ndRange;
        private String configType;

        public String getGuid() {
            return guid;
        }

        public void setGuid(String guid) {
            this.guid = guid;
        }

        public String getCombId() {
            return combId;
        }

        public void setCombId(String combId) {
            this.combId = combId;
        }

        public String getMembersSdId() {
            return membersSdId;
        }

        public void setMembersSdId(String membersSdId) {
            this.membersSdId = membersSdId;
        }

        public String getPackageId() {
            return packageId;
        }

        public void setPackageId(String packageId) {
            this.packageId = packageId;
        }

        public String getSchemeId() {
            return schemeId;
        }

        public void setSchemeId(String schemeId) {
            this.schemeId = schemeId;
        }

        public String getEnergyType() {
            return energyType;
        }

        public void setEnergyType(String energyType) {
            this.energyType = energyType;
        }

        public String getDifId() {
            return difId;
        }

        public void setDifId(String difId) {
            this.difId = difId;
        }

        public String getOriDifId() {
            return oriDifId;
        }

        public void setOriDifId(String oriDifId) {
            this.oriDifId = oriDifId;
        }

        public String getDetailId() {
            return detailId;
        }

        public void setDetailId(String detailId) {
            this.detailId = detailId;
        }

        public String getOriDetailId() {
            return oriDetailId;
        }

        public void setOriDetailId(String oriDetailId) {
            this.oriDetailId = oriDetailId;
        }

        public String getConfigId() {
            return configId;
        }

        public void setConfigId(String configId) {
            this.configId = configId;
        }

        public String getConfigValue() {
            return TextUtils.isEmpty(configValue) ? "--" : configId.equals("E111") ?
                    BigDecimalUtils.onKeep5Decimal_divide(configValue) + "元/度"
                    :  BigDecimalUtils.onKeep2Decimal_new(configValue) + "%";
        }

        public void setConfigValue(String configValue) {
            this.configValue = configValue;
        }

        public String getConfigName() {

            return TextUtils.isEmpty(configName) ? "--" : configName;
        }

        public void setConfigName(String configName) {
            this.configName = configName;
        }

        public String getPlRange() {
            return TextUtils.isEmpty(plRange) ? "--" : BigDecimalUtils.onKeep2Decimal_new(plRange) + "%";

        }

        public void setPlRange(String plRange) {
            this.plRange = plRange;
        }

        public String getNdRange() {
            return TextUtils.isEmpty(ndRange) ? "--" : BigDecimalUtils.onKeep2Decimal_new(ndRange) + "%";
        }

        public void setNdRange(String ndRange) {
            this.ndRange = ndRange;
        }

        public String getConfigType() {
            return configType;
        }

        public void setConfigType(String configType) {
            this.configType = configType;
        }
    }

}
